<?php
/**
 * Created by PhpStorm.
 * User: 28395
 * Date: 2017/1/6
 * Time: 22:11
 */
require 'common.inc.php';
require DT_ROOT.'/api/weixin/init.inc.php';
$WX_APPID = 'wx6b4d1bb891aa6db2';
$WX_APPSECRET = 'e5447f7b126c4804998feef7fe99a3a4';
$url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid='.$WX_APPID.'&secret='.$WX_APPSECRET;
echo $url;
$arr = file_get_contents($url);
print_r($arr);
